<?php  
  $baseUrl = Yii::app()->theme->baseUrl; 
  $cs = Yii::app()->getClientScript();
  $cs->registerScriptFile('http://www.google.com/jsapi');
  $cs->registerCoreScript('jquery');
  $cs->registerScriptFile($baseUrl.'/js/jquery.gvChart-1.0.1.min.js');
  $cs->registerScriptFile($baseUrl.'/js/pbs.init.js');
  $cs->registerCssFile($baseUrl.'/css/jquery.css');

?>

<?php $this->pageTitle=Yii::app()->name; ?>
<div class="span-24 showgrid">
<div class="sidebar">
    <div class="span-5 last">
        <?php 
        Yii::import('application.modules.shop.components.*');
        $this->widget('MainCategoriesWidget'); 
        ?>	
    </div>
</div>
<table class="span-18">
    <tr>
        <td>
<div class="dashboardIcons span-18">
    <?php
//    ivan
    Yii::import('application.modules.shop.*');
    Yii::import('application.modules.shop.models.*');
    
        foreach(Category::model()->findAll(array("condition"=>"parent_id =  0","order"=>"category_id")) as $category)//ivan
	{
            echo '<div class="dashIcon span-3">';
            
             echo '<a href="index.php?r=shop/category/view&id='.$category->category_id.'">
                 <img width="100" height="90" src="'.$category->image_url.'"></img>
                 </a>';
            echo '<div class="dashIconText ">
                <a href="index.php?r=shop/category/view&id='.$category->category_id.'">
                '.$category->title.'
                </a>
                </div>';
            echo '</div>';            
        }
    ?>        
    
</div><!-- END OF .dashIcons -->
        </td>
    </tr>
    <tr>
        <td>
<div class="feedback">
Popular Digital Cameras
</div>
        </td>
    </tr>
    <tr>
        <td>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>            
        </td>
    </tr>    
    <tr>
        <td>
<div class="span-18">
Price Reduced products
</div>
        </td>
    </tr>
<tr>
        <td>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>            
        </td>
    </tr>     
    <tr>
        <td>
<div class="span-18">
Popular right now
</div>
        </td>
    </tr>
<tr>
        <td>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>
<div class="dashIcon span-3"><a href="index.php?r=shop/category/view&amp;id=1">
                 <img src="./images/uploads/category_icons/1.jpg" height="90" width="100">
                 </a><div class="dashIconText ">
                <a href="index.php?r=shop/category/view&amp;id=1">
                VEHICLES
                </a>
                </div></div>            
        </td>
    </tr>     
</table>

</div>